$NG.AllReady(function (page, { useValuesChange,useDataIndexChange,useUpdateRows,useUpdateRow }) {

    const mstform = $NG.getCmpApi("p_form_const_return_plan_m")
    useValuesChange(({args})=>{
        getPtInfoByPhid()
    },"p_form_const_return_plan_m.phid_pc")

      /**
     * 
     * 功能扩展区
     * 
    */
    //获取项目信息
    function getPtInfoByPhid() {
        if (mstform.getItem("phid_pc").getValue()) {
          $NG.execServer("getPtInfoByPhid", { phid: mstform.getItem("phid_pc").getValue() }, function (res) {
            if(res.count == 0) return
            const datas = JSON.parse(res.data)[0].extendObjects;
            console.log(datas);
            $NG.updateState((updater) => {
              updater.data.p_form_const_return_plan_m.setProps({
                u_pc_no:datas.pc_no,
                //事业部
                u_devision: { value: datas.division_phid, label: datas.division_name },
                //区域中心
                u_regional_center: { value: datas.regional_center_phid, label: datas.regional_center_name },
                //产品线
                u_product_line: { value: datas.midwife_phid, label: datas.midwife_name },
              });
            });
          });
        }
    }
})  